/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package heuristics;

import java.io.File;

/**
 *
 * @author Ahmed
 */
public class AssignmentComparator {
    public static void main(String[] args) {
        String dir1 = "output/CoverageMaps_cov";
        String dir2 = "output/CoverageMaps_fit";
        
        File Dir1 = new File(dir1);
        File Dir2 = new File(dir2);
        
        File[] subDirs1 = Dir1.listFiles();
        File[] subDirs2 = Dir2.listFiles();
        
        int n = subDirs1.length;
        if (subDirs2.length != n)
            throw new RuntimeException("SubDir Count Mismatch");
        
        for (int i = 0; i < n; i++) {
            boolean found = false;
            for (File mapFile : subDirs2[i].listFiles()) {
                for (File baseMapFile : subDirs1[i].listFiles()) {
//                    System.out.println(mapFile.getName() + "\n" + baseMapFile.getName());
                    if (baseMapFile.getName().equals(mapFile.getName()))
                        found = true;
                }
            }
            if (!found)
                System.out.println(subDirs2[i].getName());
        }
    }
}
